package com.hhf.rpc.core.config;

import com.hhf.rpc.core.fault.loadbalancer.LoadBalancerKey;
import com.hhf.rpc.core.fault.tolerant.TolerantStrategyKey;
import com.hhf.rpc.core.retry.RetryStrategyKey;
import com.hhf.rpc.core.serializer.SerializerKey;
import lombok.Data;

/**
 * @Author hhf
 * @Date 2024/10/16
 * @Description rpc默认配置
 */
@Data
public class RpcConfig {

    private String name = "rpc-core";

    private String version = "1.0.0";

    private String serverHost = "localhost";

    private Integer serverPort = 8080;

    private Boolean mock = false;

    private String serializerKey = SerializerKey.JDK;

    private String loadBalancerKey = LoadBalancerKey.ROUND_ROBIN;

    private String retryStrategyKey = RetryStrategyKey.NO;

    private String tolerantStrategyKey = TolerantStrategyKey.FAIL_FAST;

    /**
     * 注册中心配置
     */
    private RegistryConfig registryConfig = new RegistryConfig();


}
